package com.huawei.weather.client;

import com.huawei.weather.domain.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("WEATHER-QUERYWEATHERDATA-7333")
public interface WeatherdataClient {

    @RequestMapping("/findWeatherByApi/{cityId}")
    public WeatherResponse findWeatherByApi(@PathVariable("cityId") String cityId);

    @RequestMapping("/findWeatherByUser/{cityId}")
    public WeatherResponse findWeatherByUser(@PathVariable("cityId") String cityId);
}
